package cn.tedu.api;

import java.io.File;
import java.util.ArrayList;
import java.util.Collection;

public class Test1_Generics {
    public static void main(String[] args) {
//        int[] a = new int[5];
//        a[0] = 1.2;
        Collection c = new ArrayList();
        c.add(10);
        c.add(6.6);
        c.add("rose");
        c.add(new File(""));
        System.out.println(c);

        Collection<String> c2 = new ArrayList<>();
        c2.add("rose");
        System.out.println(c2);
    }
}
